#define _CRT_SECURE_NO_WARNINGS
#include "Stack.h"

void Stack::Init(int n) {
	a = (int*)malloc(sizeof(int) * n);
	if (a == NULL) {
		perror("malloc fail");
		exit(-1);
	}
	capacity = n;
	size = 0;
}
void Stack::fun() {
	std::cout << "fun()" << std::endl;
}
void Stack::Destory() {
	free(a);
	a = NULL;
}